// https://www.npmjs.com/package/@rollup/pluginutils

import { createFilter } from '@rollup/pluginutils' //TODO 看看这个
import path from 'node:path'
function myPlugin(options = {}) {
  // assume that the myPlugin accepts options of `options.include` and `options.exclude`
  var filter = createFilter(
    options.include,
    options.exclude
    //   ,
    //   {
    //   resolve: '/my/base/dir'
    // }
  )
  const isFilter = filter(
    `G:\\projects\\Project_manage\\studyCategory_projects\\项目包相关的\\rollup\\collectionTools\\src\\utils\\throttle.js`
  )
  console.log(isFilter)
}

myPlugin({ include: ['src\\**\\*.[t|j]s'] })

console.log(process.cwd())
console.log('%c This is a styled message', 'color: red; font-size: 20px;')
// console.log(path.resolve(`utils/t1`, 'utils/test/test1.js'))
